package handler

import com.alibaba.fastjson.JSON
import com.showapi.app.dynamic.BaseHandler
import com.showapi.app.util.CommonUtil

//用于定时任务的代理执行
class Timejob extends  BaseHandler{



    def  run_second_10={params->
        println "run_second_10run_second_10run_second_10"
    }



    def  run_minute_01={params->
        println "run_minute_01run_minute_01run_minute_01"
        return null
    }

    def    run_minute_05= {params->
        println "run_minute_05run_minute_05run_minute_05run_minute_05"

        return null;
    }

    //跑10分钟1次的任务
    def    run_minute_10 ={params->
        println "run_minute_10run_minute_10run_minute_10"
        def ret=dynamicService.run_backgroud("handler.stock.StockSchedule","stopStockResumption",[:])
        return ret;
    }

    def run_minute_30 ={params->
        println "run_minute_30run_minute_30run_minute_30"
        return null;
    }

    def run_minute_60 ={params->
        println "run_minute_60run_minute_60run_minute_60"

        return null;
    }

    def run_hour_6 ={params->
        println "run_hour_6run_hour_6run_hour_6run_hour_6"
        return null;
    }

    def run_DayJob ={params->
        println "run_DayJobrun_DayJobrun_DayJobrun_DayJob"

        return null;
    }



}